﻿@model Register

@{
    ViewBag.Title = "Confirm";
}

@Html.Partial("_Conference", Model.Conference)

<h1>Confirmation</h1>

<h2>Contact Details</h2>
<p><span class="light">@Model.FirstName @Model.LastName<br />
    @Model.Street<br />
    @Model.City, @Model.State, @Model.Country<br />
    @Model.MobilePhone</span>
</p>
<h2>Thank you for registering.</h2>
<h2>Transaction <span>@Model.ID</span></h2>

<p>
    @*We have sent a confirmation sms to <span class="light">@Model.MobilePhone</span>*@ 
    Confirmation has been sent to <span class="light">@Model.Email</span> with the details contained on this page.
</p>
<p>Please prepare <span class="light">@Model.PaymentType</span> 
    @if (@Model.PaymentNumber != null) 
    {
        <span class="light">#@Model.PaymentNumber</span>
    }. 
</p>
@if (@Model.IsLocalPickup)
{
    <ul>
        <li>You have chosen the local pickup option.</li>
        <li>Please come to our office (address below) with payment and <span class="light">Transaction #@Model.ID</span> written on it.</li>
        <li>Once we receive @Model.Conference.Cost.ToString("0") rupees in full, a conference bracelet will be provided.</li>
        <li>You must wear this bracelet on conference day to gain admittance. We cannot replace bracelets, so please do not lose them!</li>
    </ul>
}
else if (@Model.PaymentType.ToLower().Contains("cash"))
{
    <ul>
        <li>Write <span class="light">@Model.ID</span> on the envelope and on an additional piece of paper.</li>
        <li>Send envelope with cash to our office (address below).</li>
        <li>Once we receive @Model.Conference.Cost.ToString("0") rupees in full, a conference bracelet will be mailed to the address you provided.</li>  
        <li>You must wear this bracelet on conference day to gain admittance. We cannot replace bracelets, so please do not lose them!</li>
    </ul>
}
else {
    <ul>
        <li>Include <span class="light">@Model.ID</span> on both envelope and on the @Model.PaymentType.</li> 
        <li>Make @Model.PaymentType out to <span class="light">Kingdom Foundations</span>.</li>
        <li>Send envelope with @Model.PaymentType to our office (address below).</li>
        <li>Once we receive @Model.Conference.Cost.ToString("0") rupees in full, a conference bracelet will be mailed to the address you provided.</li>
        <li>You must wear this bracelet on conference day to gain admittance. We cannot replace bracelets, so please do not lose them!</li>
    </ul>
}

@if (Model.MinistrySignup != null)
{
    <h2>@Model.MinistrySignup.Ministry.Name Ministry:  <span class="light">@MinistrySlot()</span> </h2>
    @:You have succesfully signed up for the <span class="light">@Model.MinistrySignup.Ministry.Name</span> Ministry. Your ministry slot is: <span class="light">@MinistrySlot()</span>. 
    @:Please remember your ministry slot.  There will be schedules available at the conference mapping your ministry slot to an actual room and time.  
    @:To gain entrance to a ministry room, you <span class="light">must</span> present your conference bracelet.      
}
<br /><br />
<a href="http://KingdomFoundations.org">Return to KingdomFoundations.org</a>  

@Html.Partial("_Contact")

@helper MinistrySlot()
{
    @:Day @Model.MinistrySignup.Day, Room @Model.MinistrySignup.Room, Timeslot @Model.MinistrySignup.Timeslot
}
